@extends('layouts.admin')
@section('title')
    <title>商家详情</title>
@endsection
@section('content')
    @include('layouts.left')
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                店员详情
                <small>Control panel</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li class="active">Dashboard</li>
            </ol>
        </section>
        <!-- Main content -->
        <section class="content">
        <div class="row">
                <div class="col-md-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">查看店员详情</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body no-padding">
                            <table class="table table-striped">
                                <tbody>
                                <tr>
                                    <th style="width: 230px">hmid</th>
                                    <td>{{ $datas['hmid'] }}</td>
                                </tr>
                                <tr>
                                    <th>来源店铺</th>
                                    <td>{{ $shopname }}</td>
                                </tr>
                                <tr>    
                                    <th>微信openid</th>
                                    <td>{{ $datas['openid'] }}</td>
                                </tr>
                                <tr>
                                    <th>微信昵称</th>
                                    <td>{{ $datas['nickname']}}</td>
                                </tr>
                                <tr>
                                    <th>权限</th>
                                    <td>@if($datas['privilege'] == '10')
                                            店长
                                        @else
                                            店员
                                        @endif</td>
                                </tr>
                                <tr>
                                    <th>头像</th>
                                    <td>{{ $datas['headpic'] }}</td>
                                </tr>
                                <tr>
                                    <th>简介信息</th>
                                    <td>{{ $datas['referral'] }}</td>
                                </tr>
                                <tr>
                                    <th>加入时间</th>
                                    <td>{{ $datas['regtime'] }}</td>
                                </tr>
                                <tr>
                                    <th>最后登录时间</th>
                                    <td>{{ $datas['lasttime'] }}</td>
                                </tr>

                                <tr>
                                    <th>是否是超管</th>
                                    <td>@if($datas['ismanage'] == '1')
                                    超管
                                    @else
                                    非超管
                                    @endif

                                </td>
                                </tr>
                                <tr>
                                    <th>店员状态</th>
                                    <td>@if($datas['asstatus'] == '1')
                                        正常
                                        @else
                                        禁用
                                        @endif
                                    </td>
                                </tr>
                                <tr>
                                    <th>是否可约</th>
                                    <td>@if($datas['subscribe'] == '1')
                                        可约
                                        @else
                                        不可约
                                        @endif
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->
                </div>
                <!-- /.col -->
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
    <!-- 在这里 写js函数-->
@endsection


